package com.example.othree.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.othree.entity.OzoneCaseHour;
import com.example.othree.mapper.PollutionCaseHourMapper;
import com.example.othree.service.PollutionCaseHourService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service
public class PollutionCaseHourServiceImpl extends ServiceImpl<PollutionCaseHourMapper, OzoneCaseHour> implements PollutionCaseHourService {

    @Resource
    PollutionCaseHourMapper pollutionCaseHourMapper;

    @Override
    public List<HashMap<String, String>> OzoneCaseHourForTime(String startTime, String endTime) {
        return pollutionCaseHourMapper.ozoneByTime(startTime, endTime);
    }
}
